package com;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class MainThread {

    static public void main(String[] argv) {
        ExecutorService pool  = Executors.newFixedThreadPool(3);//屏保，串口，
        pool.execute(new Runnable() {
            @Override
            public void run() {
                while (true){
                    System.out.println("ddd");
                    try {
                        Thread.sleep(100);
                    } catch (InterruptedException e) {
                        e.printStackTrace();
                    }
                }
            }
        });
    }
}
